<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../includes.jsp"%>
<script charset="utf-8" src="<%=basePath%>/resources/js/plugin/editor/kindeditor-min.js"></script>
<script charset="utf-8" src="<%=basePath%>/resources/js/plugin/editor/lang/zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath%>/resources/js/plugin/form/jquery.form.js"></script>
<div id="innerPostBlogForm" class="row">
	<form:form method="POST" modelAttribute="blog" action="submit" id="postBlog">
		<form:input path="blogTitle" cssClass="span11" placeholder="title" />
		<form:textarea path="blogContent" cssClass="span11" rows="20" />
		<button type="submit" class="btn">Post</button>
	</form:form>
</div>

<script>
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('#blogContent');
	});
</script>